package com.github.xiaoymin.knife4j.spring.util;

import io.swagger.models.properties.Property;
import io.swagger.models.properties.RefProperty;
import io.swagger.models.refs.RefType;
import io.swagger.models.refs.GenericRef;
import io.swagger.models.properties.ArrayProperty;

public class ArrayRefProperty extends ArrayProperty
{
    private GenericRef genericRef;
    
    public String get$ref() {
        return this.genericRef.getRef();
    }
    
    public void set$ref(final String ref) {
        this.genericRef = new GenericRef(RefType.DEFINITION, ref);
        final RefProperty items = new RefProperty();
        items.setType(ref);
        items.set$ref(ref);
        this.items((Property)items);
    }
}
